<template>
  <el-result
      icon="warning"
      title="401"
      sub-title="您暂时没有权限进行此操作~"
    >
      <template #extra>
        <el-button type="primary" @click="goBack">返回</el-button>
      </template>
    </el-result>
</template>

<script setup>
import { useCookies } from '@vueuse/integrations/useCookies'
import { useRouter } from 'vue-router'
const cookie = useCookies();
const router = useRouter();
const goBack = () =>{
 // 把激活菜单改为要返回的菜单地址

 var path = cookie.get("fromURL")
 router.push(path)
}
</script>